package com.example.xuanke.Entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.Data;

@Data
@TableName("course")
public class CourseEntity {
    
    @TableId(type = IdType.AUTO)
    private Long id;
    
    @TableField("course_code")
    private String courseCode;
    
    @TableField("course_name")
    private String courseName;
    
    @TableField("max_capacity")
    private Integer maxCapacity;
    
    @TableField("current_enrollment")
    private Integer currentEnrollment;
    
    @Version
    @TableField("version")
    private Integer version;
} 